package com.wjh.www.entity.po;

import com.wjh.www.annotation.mybatis.Column;
import com.wjh.www.annotation.mybatis.Table;

/**
 * @author wjh
 * @date 2021/9/10 16:09
 * @Package com.wjh.anyview.entity.po
 */
@Table("class")
public class Clazz {
    @Column(value = "id")
    private Long id;
    @Column(value = "name")
    private String name;
    @Column(value = "college_id")
    private Long collegeId;
    @Column(value = "grade")
    private Integer grade;

    public Clazz() {
    }

    public Clazz(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getCollegeId() {
        return collegeId;
    }

    public void setCollegeId(Long collegeId) {
        this.collegeId = collegeId;
    }

    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "Clazz{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", collegeId=" + collegeId +
                ", grade=" + grade +
                '}';
    }
}
